package cc.jcizp.userservice.domain;

import javax.validation.constraints.NotNull;

/**
 * 用户域对象
 */
public class User {

    private long user_id;

    @NotNull(message = "公司id为空")
    private String app_id;

    @NotNull(message = "用户名为空")
    private String user_name;

    @NotNull(message = "密码为空")
    private String password;

    public User(){

    }

    public User(String app_id, String user_name, String password) {
        this.app_id = app_id;
        this.user_name = user_name;
        this.password = password;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", app_id=" + app_id +
                ", userName='" + user_name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
